package base;

public class T4 {
    public static void main(String[] args) {
        Value value = new Value();
        T4 t4 = new T4();
        t4.first(value);
        System.out.println(value.i);

        System.out.println("====================");
        Dog dog = new Dog();
        String name = dog.name;

    }
    public void first(Value v){
        v.i=100;
        Value val = new Value();
        v = val;

    }
}
class Value{
    int i = 15;
}

class Animal{
    protected String name;
}
class Dog extends Animal{

}


